<!--承包费维护-->
<template>
<div class="public-common">
    <div class="public-title">承包费用列表</div>
    <el-form :model="form" label-width="120px">
      <el-row>
        <el-col :span="14">
          <el-form-item label="名称">
            <el-input v-model="form.ming" placeholder="请输入搜索关键词进行快速搜索"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="10">
          <el-button type="primary" icon="el-icon-search" style="margin-left:10px;">搜索</el-button>
        </el-col>
      </el-row>
    </el-form>
    <el-table :data="tabledata" size="mini" border stripe header-row-class-name="textcenter">
            <el-table-column
                label="车牌号" prop="a1" fixed="left">
            </el-table-column>
            <el-table-column
                label="所属车队" prop="a2">
            </el-table-column>
            <el-table-column
                label="车辆类型" prop="a3">
            </el-table-column>
            <el-table-column
                label="车辆性质" prop="a4">
            </el-table-column>
            <el-table-column
                label="承包费(元)"  prop="a5">
            </el-table-column>
            <el-table-column
                label="操作" >
                <el-button type="text" size="small" @click="dialogVisible=true">编辑</el-button>
            </el-table-column>

        </el-table>
        <el-pagination
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
        :current-page="page.now"
        :page-sizes="page.sizes"
        :page-size="page.pagesize"
        layout="total, sizes, prev, pager, next, jumper"
        :total="page.total" style="margin-top:10px;">
        </el-pagination>
        <el-dialog title="车辆承包费" :visible.sync="dialogVisible" width="30%" >
        	<el-form :model="editForm" ref="editForm" label-width="80px" class="qysb-form-f" >
        	<el-scrollbar style="height:100%;">
        		<el-row>
        			<el-col :span="24">
        			  <el-form-item label="车牌号"  class="cyqlabel">
        			  		<el-input size="small" v-model="editForm.ranl1" ></el-input>
        			  </el-form-item>
        			</el-col>
           </el-row>
           <el-row>
        			<el-col :span="24">
        			  <el-form-item label="所属车队" class="cyqlabel">
        			  		<el-input size="small" v-model="editForm.ranl2" ></el-input>
        			  </el-form-item>
        			</el-col>
           </el-row>
            <el-row>
        			<el-col :span="24">
        			  <el-form-item label="车辆类型" class="cyqlabel">
        			  		<el-input size="small" v-model="editForm.ranl3" ></el-input>
        			  </el-form-item>
        			</el-col>
           </el-row>
            <el-row>
        			<el-col :span="24">
        			  <el-form-item label="车辆性质" class="cyqlabel">
        			  		<el-input size="small" v-model="editForm.ranl4" ></el-input>
        			  </el-form-item>
        			</el-col>
           </el-row>
            <el-row>
        			<el-col :span="24">
        			  <el-form-item label="承包费(元)" class="cyqlabel">
        			  		<el-input size="small" v-model="editForm.ranl5" ></el-input>
        			  </el-form-item>
        			</el-col>
           </el-row>

            <div style="text-align:center;margin-top:6px;">
              <el-button type="primary" @click="">确认</el-button>
              <el-button type="primary" @click="">应用</el-button>
              <el-button type="info" size="small" @click="dialogVisible=false">取消</el-button>
            </div>
           </el-scrollbar>
           </el-form>
         </el-dialog>
</div>
</template>

<script>
export default {
    data(){
        return {
          dialogVisible:false,
          tabledata: [
                    {
                      a1: '辽A12345',
                      a2: '东风日产',
                      a3: '日产',
                      a4: '合资车',
                      a5: '￥115',
                    }, {
                      a1: '辽A12389',
                      a2: '奔驰',
                      a3: '奔驰',
                      a4: '进口车',
                      a5: '￥65',
                    },
                    {
                      a1: '辽A165412',
                      a2: '奥迪',
                      a3: '奥迪',
                      a4: '合资车',
                      a5: '￥75',
                    }
                    ],
          page:{
            now:1,
            pagesize:10,
            sizes:[2,10, 20, 50, 100],
            total:0,
            key:''
          },
          form:{
            ming:''
          },
          editForm:{
            ranl1:'',
            ranl2:'',
            ranl3:'',
            ranl4:'',
            ranl5:'',
          }
        }
    },
    methods:{
        //分页
        handleSizeChange(pagesize){
            this.page.pagesize = pagesize;
            this.search(true,true);
        },
        handleCurrentChange(pageno){
            this.page.now = pageno;
            this.search(true,true);
        }

    }
}
</script>

<style>
  .public-common .el-form-item .el-input{ width: 100%;}
  .public-title,.fuwukab{line-height: 30px;background-color: #deecfd;padding:0 10px;margin-bottom:20px;color: #15428F}
  .el-scrollbar__wrap{ margin: 0 !important;}
  .el-dialog__body {
      padding: 10px 20px;
  }
</style>
